import os

def verify_structure():
    required_files = [
        'templates/main/index.html',
        'templates/base.html',
        'static/css/custom.css',
        'app/routes/main.py',
        'app/routes/__init__.py'
    ]
    
    missing_files = []
    for file_path in required_files:
        full_path = os.path.abspath(file_path)
        if not os.path.exists(file_path):
            missing_files.append(f"{file_path} (expected at: {full_path})")
        else:
            print(f"Found: {file_path}")
            # 打印文件大小
            print(f"Size: {os.path.getsize(file_path)} bytes")
    
    if missing_files:
        print("\nMissing files:")
        for file in missing_files:
            print(f"  - {file}")
        return False
    
    print("\nAll required files exist!")
    return True

if __name__ == '__main__':
    verify_structure() 